#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define N 200005
ll n;
ll a[N],c[N];
ll ans;
void solve()
{
    

}
int main()
{
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
     int T;
     cin>>T;
     while(T--)
     {
         memset(c,0,sizeof(c));
         cin>>n;
         for(int i=1;i<=n;i++)
         cin>>a[i];
         for(int i=n;i>=1;i--)
             {
                 a[i]=1;
                 solve();
             }
     }
    return 0;
}